package com.usermanage.Service;

import com.usermanage.beanParam.MessageBean;
import com.usermanage.util.JsonData;

import java.util.List;
import java.util.Map;

public interface MessageService {

     /**
      * 分页得到通知信息
      * @param page
      * @param size
      * @return
      */
     List<MessageBean> getAllList(String sendee, String page, String size);

     /**
      * 分页得到通知信息记录数
      * @return
      */
     int getAllListCount(String sendee);

//     void insert (String companyName, String permission_id, String messageBody, Date date, String message_type,String creater) throws Exception;
     void insert (MessageBean messageBean) throws Exception;

     JsonData updateRead (String message_code) throws Exception;

    /*
     查询接收人列表
      */
    List<Map> findSendeeUesrList(String company_id,String permission_id);

    int userUnReadCount(String sendee);

    void send (MessageBean messageBean)throws Exception;

    void dingSend (MessageBean messageBean)throws Exception;

    List<MessageBean> findSendee(String id,String message_code,String message_no,String message_creater,String message_sendee,String message_type,String message_status);

    void rabbitMq(String exchange, String routingkey, String msg);
}
